package com.ocean.dao.library;

import com.ocean.entity.library.LibraryCard;

import javax.smartcardio.Card;
import java.util.List;

/**
 * Project：SchoolManage
 * Package：com.ocean.dao.library
 * Author:zy
 * Time:2023/3/3
 */

public interface LibraryCardDao {

    /**
     * 新增借阅卡
     * @param libraryCard
     * @return
     */
    int insert(LibraryCard libraryCard);

    /**
     * 根据id删除借阅卡
     * @param id
     * @return
     */
    int delete(int id);

    /**
     * 修改借阅卡信息
     * @param libraryCard
     * @return
     */
    int update(LibraryCard libraryCard);

    /**
     * 查询所有借阅卡
     * @return
     */
    List<LibraryCard> selectAll();

    LibraryCard selectIDByName(String name);
}
